const useInput = (props = {}) => {
  const {
    defaultValue = '我是默认值',
    allowClear = true,
    disabled = false,
    prefix,
    value,
    type,
    size = 'small',
    placeholder = '请输入',
    onChange,
    onPressEnter,
    onClear,
  } = props;
  return {
    placeholder,
    defaultValue,
    allowClear,
    disabled,
    value,
    type,
    size,
    prefix,
    onChange,
    onPressEnter,
    onClear,
  };
};
export default useInput;
